package com.lxd.sunso.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxd.sunso.common.utils.PageUtils;
import com.lxd.sunso.product.entity.HistroydataEntity;
import com.lxd.sunso.product.vo.CurveVo;
import com.lxd.sunso.product.vo.RealDataVo;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * @author lxd
 * @email sunlightcs@gmail.com
 * @date 2020-12-30 18:06:30
 */
public interface HistroydataService extends IService<HistroydataEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void exportExcel(HttpServletResponse response, Map<String, Object> params) throws Exception;

    void saveHistorydata(HistroydataEntity histroydata);

    List<CurveVo> curve(Map<String, Object> params) throws InterruptedException, ExecutionException;

    void saveHistorydataBatch(List<HistroydataEntity> histroydataEntities);

    RealDataVo listHistory(Map<String, Object> params);
}

